package be.donovan.gui.invoice;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.WindowConstants;

import be.donovan.gui.helper.components.MVCPanel;

public class InvoiceScreen extends MVCPanel {
	InvoiceLinesPanel invoiceLinesPanel = new InvoiceLinesPanel();
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new InvoiceScreen());
		frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	public InvoiceScreen(){
		initGUI();
	}
	public void initGUI(){
		this.setLayout(new BorderLayout());
		this.add(new InvoiceHeaderPanel(),BorderLayout.NORTH);
		
		this.add(invoiceLinesPanel,BorderLayout.CENTER);
		this.add(new InvoiceSummaryPanel(),BorderLayout.SOUTH);
	}
}
